<div class="view">

	<!--<b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
	<br />-->

	<b><?php echo CHtml::encode($data->getAttributeLabel('title')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->title), array('view', 'id'=>$data->id)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('content')); ?>:</b>
	<?php echo CHtml::decode(CHtml::encode($data->content)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('tags')); ?>:</b>
	<?php
		$tags = Tag::findTagWeightsPortion($data->tags);
		foreach($tags as $tag=>$weight)
        {
            $link=CHtml::link(CHtml::encode($tag), array('post/index','tag'=>$tag));
            echo CHtml::tag('span', array(
                'class'=>'tag',
                'style'=>"font-size:{$weight}pt",
            ), $link).", ";
        }
		//echo CHtml::encode($data->tags); ?>
	<br />

	<!--<b><?php //echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
	<?php //echo CHtml::encode(Lookup::item('PostStatus', $data->status)); ?>
	<br />-->

	<b><?php echo CHtml::encode($data->getAttributeLabel('goods_need')); ?>:</b>
	<?php echo CHtml::encode(Lookup::item('GoodsNeed', $data->goods_need)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('create_time')); ?>:</b>
	<?php echo CHtml::encode(date('M j, Y', $data->create_time)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('update_time')); ?>:</b>
	<?php echo CHtml::encode(date('M j, Y', $data->update_time)); ?>
	<br />

	<!--<b><?php //echo CHtml::encode($data->getAttributeLabel('author')); ?>:</b>
	<?php //echo CHtml::encode($data->author->username); ?>
	<br />-->
    
    <!--<b><?php //echo CHtml::encode('Comment(s)'); ?>:</b>
	<?php //echo CHtml::encode($data->commentCount); ?>
	<br />-->

</div>